

<table class="table">
  <tr>
    <td width="50%" style="border:none">
      <pre><code [highlight]="htmlCode"></code></pre>
      <ion-list>
        <ng-container *virtualItem="items; let item; let k = key">
          <ion-item *diyIf="k !== 2">{{k + 1}}、{{item}}</ion-item>
        </ng-container>
      </ion-list>
    </td>
    <td style="border:none">
      <hr />
      <h5  class="my-3">diyIf指令</h5>
      <div class="code-dark">
      <pre><code [highlight]="tsCode1"></code></pre>
    </div>
      <hr />
      <h5  class="my-3">virtualItem指令</h5>
      <div class="code-dark">
      <pre><code [highlight]="tsCode"></code></pre>
    </div>
    </td>
  </tr>
</table>